package com.dayuanit.dy15.atm.mapper;

import com.dayuanit.dy15.atm.entity.UserDetail;
import org.apache.ibatis.annotations.Param;

public interface UserDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserDetail record);

    int insertSelective(UserDetail record);

    UserDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserDetail record);

    int updateByPrimaryKey(UserDetail record);

    UserDetail getByEmail(@Param("email") String email, @Param("status") Integer status);

    UserDetail getByUserIdEmail(@Param("userId") Long usreId, @Param("email") String email);

    int updateStatus(@Param("id") Long id,
                     @Param("oldStatus") Integer oldStatus,
                     @Param("newStatus") Integer newStatus);

    UserDetail getByUserId(Long userId);
}